package com.gome.ocean.service.task;

/**
 * 回调任务
 * 
 * @author haqiaolong 2016年6月16日 下午2:28:40
 * @since 5.0.0
 */
public class CallBackTask implements Runnable {

    private CallBack callBack;
    private int      sleep;

    public CallBackTask(CallBack callBack, int sleep){
        this.callBack = callBack;
        this.sleep = sleep;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(sleep);
        } catch (InterruptedException e) {
        }
        callBack.callBack();
    }
}
